package com.github.cooingandwooing.mapper;

import java.util.List;

import com.github.cooingandwooing.entity.UserEntity;
import org.apache.ibatis.annotations.Param;

/**
 * 〈自定义SQL：默认也会增加多租户条件〉
 *
 * @author cooingandwooing
 * @create 2022/2/22
 * @since 1.0.0
 */
public interface UserMapper {
    /**
     * 自定义SQL：默认也会增加多租户条件
     * 参考打印的SQL
     * @return
     */
    public Integer myCount();

    public List<UserEntity> getUserAndAddr(@Param("username") String username);

    public List<UserEntity> getAddrAndUser(@Param("name") String name);
}
